<div style="width:90%;margin-left:auto;margin-right:auto;margin-bottom: 10px;">
	<h3 style="margin-bottom: 5px;color: #646464;">CÓ THỂ BẠN QUEN</h3></a>
	<table>
	<?php
	foreach ($data['friends'] as $friend)
	{
		echo '<tr id="divSendRequestFriendship'.$friend['id'].'">';
		echo "<td>";
		echo '<img src="'.Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/avatar/'.$friend['avatar'].'" width="30px"/>';
		echo "</td>";
		echo "<td>";
		echo $friend['name'] . '('.$friend['friends'].')';
		echo "</td>";
		echo "<td>";
		echo '<input id="btnSendRequestFriendship'.$friend['id'].'" type="button" value="Gửi yêu cầu" class="noHide" onclick="sendRequestFriendship('.$friend['id'].')"/>';
		echo "</td>";
		echo "</tr>";
	}
	?>
	</table>
</div>

<div style="width: 90%; margin: 0 auto;padding: 15px 0;border-top: solid 1px #646464;">
  <?php echo '<a href="'.Yii::app()->request->baseUrl.'/Page/ListFriend/">';?>
  <h3 style="margin-bottom: 5px;color: #646464;">LỜI MỜI KẾT BẠN</h3></a>
  <table>
  	<?php
		foreach ($data['listRequesting'] as $friend)
	{
		echo '<tr class="divNotificationFriendship'.$friend['id'].'">';
		echo "<td>";
		echo '<img src="'.Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/avatar/'.$friend['avatar'].'" width="30px"/>';
		echo "</td>";
		echo "<td>";
		echo $friend['name'];
		echo "</td>";
		echo "<td>";
		echo '<input id="btnNotificationFriendshipAccept'.$friend['id'].'" type="button" name="acceptRequest" value="Đồng ý" class="noHide" onclick="ajaxRequestFriendship('.$friend['id'].',\'accept\')"/>';
		echo "</td>";
		echo "</tr>";
	}

	?>
	</table>
</div>


<div style="width: 90%; margin: 0 auto;padding: 15px 0;border-top: solid 1px #646464;">
  <?php echo '<a href="'.Yii::app()->request->baseUrl.'/Page/ListFriend/">';?>
  <h3 style="margin-bottom: 5px;color: #646464;">DANH SÁCH YÊU THÍCH</h3></a>
  	<?php
		foreach ($data['listFavorite'] as $list)
	{
		echo '<img src="'.Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/album/'.$list['photo'].'" style="width: 50px; padding: 3px;"/>';
		//echo '<br/>'.$list['title'].'<br/>';

	}
	?>
</div>


<div style="width: 90%; margin: 0 auto;padding: 15px 0;border-top: solid 1px #646464;">
  <?php echo '<a href="'.Yii::app()->request->baseUrl.'/Page/ListFriend/">';?>
  <h3 style="margin-bottom: 5px;color: #646464;">DANH SÁCH NGẪU NHIÊN</h3></a>
  	<?php
	foreach ($data['listRandom'] as $list)
	{
		echo '<img src="'.Yii::app()->request->baseUrl.'/themes/fly_high/assets/img/album/'.$list['photo'].'" style="width: 50px; padding: 3px;"/>';
		//echo '<br/>'.$list['title'].'<br/>';

	}
	?>
</div>